package com.maogouxiong.seatatestorder.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName StorageFeignService
 * @Description
 * @Author zhanhao
 * @Date 2020/6/19 11:31
 * @Version V1.0
 **/
@FeignClient(value = "seata-account")
public interface AccountFeignService {

    @RequestMapping(value = "/account/account/reduceBalance")
    void reduceBalance(@RequestParam("userId") String userId, @RequestParam("money") int money);
}
